package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;

/**
 * @Name AddressService
 * @Author stella
 * @Date 2023-03-09 2:36 PM
 */
public interface AddressService {
    //地址清单
    List<Address> list();

    //设置默认地址
    void defaultAdd(Long id);

    //新增地址
    void addAddress(Address address);

    //回显地址
    Address getAdd(Long id);

    //修改更新地址
    void updateAdd(Address address);

    //获取默认地址
    Address getDefault();
}
